//
//  TCUBag.h
//  TreeMenuTest
//
//  Created by Etienne on 11/07/07.
//  Copyright (c) 2007 Etienne Samson. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface TCUBag : NSObject <NSCopying, NSMutableCopying, NSCoding> {

}

+ (id) bag;
+ (id) bagWithArray:(NSArray*)array;
+ (id) bagWithSet:(NSSet*)set;
+ (id) bagWithObjects:(id)object1, ...;

- (id) initWithArray:(NSArray*)array;
- (id) initWithSet:(NSSet*)set;
- (id) initWithObjects:(id)object1 arguments:(va_list)args;

- (int) count;
- (int) countForObject:(id)object;
- (BOOL) containsObject:(id)value;
- (id) member:(id)value;
- (NSArray*) allObjects;
@end
